package com.fbs.wowo.wx.mapper;

import com.fbs.wowo.wx.entity.WxAuth;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface WxAuthMapper {
    int deleteByPrimaryKey(String id);

    int insert(WxAuth record);

    int insertSelective(WxAuth record);

    WxAuth selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(WxAuth record);

    int updateByPrimaryKey(WxAuth record);

    WxAuth findWxAuthState(@Param("userId")String userId, @Param("articleId")String articleId);

    List<WxAuth> findWxAuthByUserId(String userId);
}